package com.unjuanable.safetymonitor.domain.common.validator;

import org.springframework.stereotype.Component;

/**
 * @description
 */
@Component
public class InputTextValidator {

    private static final int DEFAULT_INPUT_NAME = 50;

    public void defaultInputShouldNotLongerThan(String inputText) {
        if (inputText.length() > DEFAULT_INPUT_NAME) {
            throw new RuntimeException();
        }
    }
}
